// 定时器
let t = null;
// 防抖
export const debounce = function( fn, delay ) {
	delay = delay || 300
    if( t !== null ) {  
        clearTimeout(t);  
    }  
    t = setTimeout(() => {  
        fn()  
    },delay)  
}
